<script setup lang="ts">
  import { onLaunch, onShow, onHide } from '@dcloudio/uni-app';

  // 当uni-app 初始化完成时触发（全局只触发一次）
  onLaunch(() => {
    console.log('App Launch');
  });
  // 当 uni-app 启动，或从后台进入前台显示
  onShow(() => {
    console.log('App Show');
  });
  // 当 uni-app 从前台进入后台
  onHide(() => {
    console.log('App Hide');
  });
</script>
<style lang="scss">
  @import './uni.scss';
  @import '@/assets/style/iconfont.css';

  /* H5 兼容 pc 所需 */ /* #ifdef H5 */
  @media screen and (min-width: 768px) {
    body {
      overflow-y: scroll;
    }
  }

  /* 顶栏通栏样式 */
  /* .uni-top-window {
	    left: 0;
	    right: 0;
	} */

  uni-page-body {
    background-color: #f5f5f5 !important;
    min-height: 100% !important;
    height: auto !important;
  }

  .uni-top-window uni-tabbar .uni-tabbar {
    background-color: #fff !important;
  }

  .uni-app--showleftwindow .hideOnPc {
    display: none !important;
  }

  /* #endif */
</style>
